﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BussinessObject;
using Class_Entity;

public partial class Category_Insert : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnInsert_Click(object sender, EventArgs e)
    {
        BO_Category boca = new BO_Category();
        CE_Category ceca = new CE_Category();

        ceca._CategoryName = txtName.Text.Trim();
        boca.AddNew_Category(ceca);
        HttpContext.Current.Response.Write("<script type='text/javascript'>alert('" + "Done" + "');window.location.href='Category Managerment.aspx';</script>");
    }
}